function x = sitrec(n, A, b)
% rezolvare recursiva sistem inferior triunghiular
% Intrari: 
%		A=matrice sistem
%	        b=vector termeni liberi
% Iesiri: 
%		  x=solutia sistemului
	if n == 1
		x( 1, 1 ) = b( 1 ) / A( 1, 1 );
	else
		x( 1 : n-1, 1 ) = sitrec( n-1, A( 1 : n-1 , 1 : n-1 ), b( 1:n-1 ) );

		x( n, 1 ) = (b( n, 1 ) - A( n, 1:n-1 ) * x( 1:n-1 , 1 )) / A( n, n );
	endif

endfunction